<template>
  <div id="app">
     <img src="./assets/laitoutiao.jpg" v-if="imgshow"  />
      <router-view v-else></router-view>
  </div>
</template>

<script>
export default {
  components:{

  },
  data() {
   return{
    imgshow: true
   }
 },
 mounted(){
   setTimeout(() => {
     this.imgshow = false
   }, 2000);
 },
 async created(){
   let { token , uid  } = localStorage
   this.$store.commit('getAuthorId',uid)
  const res =  await this.$http.post('/user/getuserInfo',{
    token
  })
  let { userInfo } = res.data
  this.$store.commit('getUserInfo',userInfo)
 }
}
</script>

<style lang="less">
@import url('./common/change.less');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  text-decoration: none;
}
input,textarea{
  border: none;
  outline: none;
}
</style>
